import { GET, POST } from '@/utils'

enum API {
    GET_USER_DATA_API = '/queryUser',
    ADD_USER_DATA_API = '/addUser',
    DELETE_USER_DATA_API = '/deleteUser',
    UPDATE_USER_DATA_API = '/updateUser',
}

export const getUserDataAPi = (data: any) => POST(API.GET_USER_DATA_API, data, false)
export const addUserDataAPi = (data: any) => POST(API.ADD_USER_DATA_API, data, false)
export const deleteUserDataAPi = (data: any) => POST(API.DELETE_USER_DATA_API, data, true)
export const updateUserDataAPi = (data: any) => POST(API.UPDATE_USER_DATA_API, data, false)